<script lang="ts" setup>
import { useRouter, useRoute } from "vue-router";
import { onMounted } from "vue";
onMounted(() => {
  const query = useRoute().query;
  const params = useRoute().params;
  const { path } = params;
  useRouter().replace({ path: "/" + path, query });
});
// render: function(h:any) {
//   return h() // avoid warning message
// }
</script>
